﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Windows.Forms;
using CP.General;

namespace ConsoleApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void EncryptButton_Click(object sender, EventArgs e)
        {
            this.textBox2.Text = AESEncryption.Encrypt(this.textBox1.Text, null);
        }

        private void DecryptButton_Click(object sender, EventArgs e)
        {
            this.textBox3.Text = AESEncryption.Decrypt(this.textBox2.Text, null);
        }
    }
}
